package cn.dglydrpy.study;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * 用于打war包,打成war包时的启动类
 */
public class ServletInitializer extends SpringBootServletInitializer {

	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
		// 这里指向核心启动类(main函数所在的类)
		return application.sources(SbmpApplication.class);
	}

}
